#!/bin/bash
echo "find about SUID and SGID ..."
sleep 3
find / -type f -perm +6000 > file3.txt
echo "about SUID and SGID's file were kept!"
echo "whether you delete SUID and SGID,yes or no?"
read unswer
for file in `ls file3.txt`
do
if [ $unswer="yes" ]
then
        chomd -R u-s $file
        chomd -R u-g $file
else
        echo "don't delete SUID and SGID !"
fi
done

